<?php

namespace app\common\model;


class Article extends Base
{

    protected $table = 'article';

    protected $auto = array('update_time');
    protected $insert = array('create_time');

    protected $type = array(
        'id' => 'integer',
        'cover_id' => 'integer',
    );

    public $keyList = [];

    public function getCreateTimeAttr($value)
    {
        return date('Y-m-d', $value);
    }
}
